package cc.rengu.oltp.utility.bean;

import java.io.Serializable;

/**
 * Created by 王成 on 2020/4/25
 */
public class PageInfo implements Serializable {
    /* 总记录数 */
    private int totalRows;
    /* 查询起始页 */
    private int pageIndex;
    /* 每页显示记录数 */
    private int pageSize;
    /* 总页数 */
    private int totalPage;

    public PageInfo() {
    }

    public PageInfo(int pageIndex, int pageSize) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
    }

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
}
